package com.example.find_module;

import com.example.common.mvvm.BaseEntity;
import com.example.common.mvvm.model.BaseRepository;
import com.example.network_sdk.RetrofitManager;

import io.reactivex.Observable;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;

public class FindTabRepository extends BaseRepository {
    public Observable<BaseEntity>requestCollectData(){
        Observable<CollectEntity> collectEntityObservable = RetrofitManager.getInstance().getRetrofit().create(ApiService.class).requestCollect();
        return collectEntityObservable.map(new Function<CollectEntity, BaseEntity>() {
            @Override
            public BaseEntity apply(@NonNull CollectEntity collectEntity) throws Exception {
                return collectEntity;
            }
        });
    }
}
